/**
 * LEKU APPLIANCE CHAINS.
 * Copyright (c) 2016-2016 All Rights Reserved.
 */
package com.leku.video.dao.impl.video;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.leku.commons.datasource.DataSourceClient;
import com.leku.video.dao.video.VideoFavDao;

/**
 * 功能描述:视频服务
 *
 * @author Ranphy
 * @created 2018年10月24日
 * @version 1.0.0
 */
@Repository
public class VideoFavDaoImpl implements VideoFavDao {

	@Autowired
	private DataSourceClient dataSourceClient;

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.leku.video.dao.video.VideoFavDao#queryMemFav(java.lang.String)
	 */
	@Override
	public List<String> queryMemFav(String id) {

		Map<String, Object> param = new HashMap<String, Object>();

		param.put("id", id);

		return dataSourceClient.selectList("videoFavDao.queryMemFav", param);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.leku.video.dao.video.VideoFavDao#queryYSMemFav(java.lang.String)
	 */
	@Override
	public List<String> queryYSMemFav(String id) {

		Map<String, Object> param = new HashMap<String, Object>();

		param.put("id", id);

		return dataSourceClient.selectList("videoFavDao.queryYSMemFav", param);
	}

}
